function new1(fn, ...args) {
  let res = Object.create(fn.prototype)
  console.log(args);
  let res1 = fn.apply(res, args)
  return typeof res1 == 'object' ? res1 : res
}
function demo() {
  console.log('111');
}

let aa = new1(demo, 1, 2, 3)